package com.hua.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hua.common.utils.PageUtils;
import com.hua.gulimall.product.entity.AttrEntity;
import com.hua.gulimall.product.vo.AttGrouprRelationVo;
import com.hua.gulimall.product.vo.AttrRespVo;
import com.hua.gulimall.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author ahua
 * @email 123456@163.com
 * @date 2021-11-15 19:20:12
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVo attrVo);

    PageUtils queryBaseAttrPage(Map<String, Object> params, Long catelogId);

    void updateBaseAttr(AttrVo attr);

    PageUtils querySaleAttrPage(Map<String, Object> params, Long catelogId);

    AttrRespVo getAttrInfo(Long attrId);

    List<AttrEntity> getAttrRelation(Long attrGroupId);

    void deleteRelation(List<AttGrouprRelationVo> relationVos);

    PageUtils getNoAttrRelation(Map<String, Object> params, Long attrGroupId);
}

